awilliam@xenbuild.aw [Wed, 1 Mar 2006 17:01:54 +0000 (10:01 -0700)]
[IA64] Every processor call xen_early_setup (required on SMP-guest to set ivt).
Only BP set running_on_xen.
xensetup.S slightly compacted.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Wed, 1 Mar 2006 16:53:17 +0000 (09:53 -0700)]
[IA64] warning cleanup
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Wed, 1 Mar 2006 15:29:00 +0000 (08:29 -0700)]
[IA64] VTI: updated vtlb, support_non_contiguous memory on vtidomain
Previously VTI-domain only supported contiguous memory,
this patch is intended to make VTI-domain support non-contiguous memory.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 20:18:08 +0000 (13:18 -0700)]
[IA64] Unused fields in mm_struct commented out.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 20:10:16 +0000 (13:10 -0700)]
[IA64] Misc clean-up and warnings removal.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 19:43:08 +0000 (12:43 -0700)]
[IA64] xen_timer_interval removed (was not used).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 19:23:46 +0000 (12:23 -0700)]
[IA64] delivery_mask removed (was unused).
The field was renamed in arch-ia64.h for backward compatibility with xen linux.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 19:02:50 +0000 (12:02 -0700)]
[IA64] Found the lost memory
This patch can work around virtual memmap/discontig memory issues,
but memory gain may not be realized.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 17:29:30 +0000 (10:29 -0700)]
[IA64] cleanup warning in xen/ia64 (arch/ia64/xen)
These patches fix many issue (ex. panic dom0, oops domU/dom0...).
we will fix compile warnnings one step at a time.
Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 17:26:43 +0000 (10:26 -0700)]
[IA64] cleanup warning in xen/ia64 (arch/ia64/linux-xen)
These patches fix many issue (ex. panic dom0, oops domU/dom0...).
we will fix compile warnnings one step at a time.
Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 17:24:03 +0000 (10:24 -0700)]
[IA64] cleanup warning in xen/ia64 (arch/ia64/linux)
These patches fix many issue (ex. panic dom0, oops domU/dom0...).
we will fix compile warnnings one step at a time.
Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 17:21:54 +0000 (10:21 -0700)]
[IA64] cleanup warning in xen/ia64 (include/asm-ia64)
These patches fix many issue (ex. panic dom0, oops domU/dom0...).
we will fix compile warnnings one step at a time.
Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 17:13:55 +0000 (10:13 -0700)]
[IA64] Cleanup hypercall.h
Cleanup to hypercall.h of ia64 xenlinux, and remove used stuff.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
awilliam@xenbuild.aw [Mon, 27 Feb 2006 21:00:33 +0000 (14:00 -0700)]
[IA64] fix SMP bug for vhpt
vhpt_paddr & vhpt_pend are now per-cpu variables, since VHPT is allocated
per cpu. This should really improve stability.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Mon, 27 Feb 2006 20:31:10 +0000 (13:31 -0700)]
[IA64] warning removal: NR_CPUS
linux/threads nullified (moved to linux-null).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Mon, 27 Feb 2006 20:16:16 +0000 (13:16 -0700)]
[IA64] SMP_HOST: Alloc vhpt from domheap
It's more reasonable to alloc vhpt from domheap, instead of xenheap.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 22:41:08 +0000 (15:41 -0700)]
merge
awilliam@xenbuild.aw [Fri, 24 Feb 2006 21:03:07 +0000 (14:03 -0700)]
[IA64] SMP_HOST: map pal code on smp host
On up host, only when rr7 is changed, efi_map_pal_code() is called to
remap pal code on new rr7. But on smp host, efi_map_pal_code is also
called to map pal code for other processors, which may not satisfy rr7
change condition, thus pal code may not be mapped in some processors,
while ia64_pal_halt_light called in startup_cpu_idle_loop will cause
machine crash.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 20:38:26 +0000 (13:38 -0700)]
[IA64] VTI: Fix two bugs
1. Vmx_check_pending_irq should not be called in vmx_vcpu_set_eoi,
because vmx_vcpu_increment_iip is called after vmx_vcpu_set_eoi. That
is, the first instruction of guest interrupt handler will be skipped.
2. Remove code segment which was used to send events to VTIdomain, when
dom0 was VTIdomain. This is not needed any more, and will cause
VTIdomain on SMP-HOST complain "Unexpected interrupt ..." .
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 20:30:39 +0000 (13:30 -0700)]
[IA64] Clean up warnings related to VTi code. (header files)
This patch adds some functions' prototype declaration in corresponding
header file and removes issues suce as redefinition of some macros.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 20:29:18 +0000 (13:29 -0700)]
[IA64] Clean up warnings related to VTi code. (C files)
This patch removes most of the warnings such as incompatible assignment,
unused variables, return value type of some functions and so on.
Signed-off-by: Zhang Xiantao <xiantao.zhang @intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 18:08:51 +0000 (11:08 -0700)]
[IA64] redefine raw_smp_processor_id()
There are two definitions of raw_smp_processor_id()
One is in file xen/include/asm-ia64/linux/asm/smp.h
#define raw_smp_processor_id() (current_thread_info()->cpu)
The other is in file /xen/include/asm-ia64/config.h
#define raw_smp_processor_id() current->processor
In fact, the first one takes effect, that's not correct.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 17:50:27 +0000 (10:50 -0700)]
[IA64] another one to remove unused linux files within xen/ia64
This patch is to remove more unused linux files inside xen and also some
duplicated ones, like slab.h and cpumask.h. This should help reduce
duplicated definitions conflicting with xen's.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 17:32:27 +0000 (10:32 -0700)]
[IA64] Remove unused Linux stuff
Signed-off-by Kevin Tian <kevin.tian@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 16:41:27 +0000 (09:41 -0700)]
[IA64] fix ia64 cset 8906
Looks like we accidentially added a compliment op here, adding
one more to nullify. Fixed dom0 not booting.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:44:34 +0000 (08:44 -0700)]
[IA64] bug fix reserve_memory()
reserved_region[].start is of virtual address in identity
mapping. not physical address.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:41:21 +0000 (08:41 -0700)]
[IA64] import linux/include/asm-ia64/meminit.h from 2.6.16-rc3.
this is needed for a later patch to modify meminit.h
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:37:46 +0000 (08:37 -0700)]
[IA64] minor bug fix in xensetup.S
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Feb 2006 15:37:09 +0000 (16:37 +0100)]
Another tiny C89 fix.
Signed-off-by: Bruce Rogers <brogers@novell.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:34:11 +0000 (08:34 -0700)]
[IA64] tlb miss fix
make dtlb miss handler to handle xen/ia64 identity mapping area.
xen/ia64 enables vhpt walker for all regions unlink Linux.
So dtlb misses on identity mapping area are catched by
dtlb miss handler, not alt dltb miss handler.
- dtlb miss on identity mapping area must be handled
- alt dtlb miss must be handled
- itlb miss on the identity mapping area must not occur
panic via page_fault().
- alt itlb miss by a guest must be handled
it occurs during dom0 boot.
- alt itlb miss by xen must not occur
panic by FORCE_CRASH
vmx_ivt.S already has such tweaks by checking psr.vm bit.
TODO: optimization
dtlb miss handlers are performance critical so that
it should be heavily optimized like alt_dtlb_miss.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:29:52 +0000 (08:29 -0700)]
[IA64] acpi printf fix
fix printf format miss. %0xlx -> 0x%lx
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:28:36 +0000 (08:28 -0700)]
[IA64] cleanup itir_ps(), itir_mask()
code clean up.
itir_ps(), itir_mask()
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:24:58 +0000 (08:24 -0700)]
[IA64] hypercall cleanup
hypercall clean up.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:23:33 +0000 (08:23 -0700)]
[IA64] assign_new_domain0_page
map_new_domain0_page() -> assign_new_domain0_page() for consistency
deleted map_domain_page0() declaration
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
cl349@firebug.cl.cam.ac.uk [Fri, 24 Feb 2006 14:41:45 +0000 (14:41 +0000)]
linux-i386: cleanup head.S, sync default_ldt and {new,boot}_cpu_data with native.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Ian.Campbell@xensource.com [Fri, 24 Feb 2006 11:05:52 +0000 (11:05 +0000)]
Implement direct iret to guest kernel where possible in HYPERVISOR_IRET macro.
Returns to guest userspace and from an NMI must still go via the hypervisor.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Feb 2006 09:29:09 +0000 (10:29 +0100)]
Tools changes for per-vcpu io event channel on IA64.
Signed-off-by Kevin Tian <Kevin.tian@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Feb 2006 07:49:32 +0000 (08:49 +0100)]
Return <4GB memory back to Xen when destroying a PAE pgdir.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Feb 2006 07:28:04 +0000 (08:28 +0100)]
This patch allows for compilation with C89 era compilers, by removing the
trailing comma from an enum, which was not part of the C89 spec.
Signed-off-by: Bruce Rogers <brogers@novell.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Feb 2006 07:27:05 +0000 (08:27 +0100)]
Cset 8950 adds shadow info dump in common code, however
IA64 has no shadow mode. Move it into arch specific stub instead.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
awilliam@xenbuild.aw [Thu, 23 Feb 2006 22:40:18 +0000 (15:40 -0700)]
[IA64] Provides right frequency ratio and base for VTi domain
This patch handles the pal_freq_ratio and pal_freq_base request breaked
to Xen by GFW for VTi domain. and it fixed the wrong frequency ratio
and base of VTi domian. So,i with this patch, VTi domian can get the
right time ,itc,cpu frequency, freqency base and other kernel params rely
on right frequency_ratio.
Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
Signed-off-by: Yu Ke <ke.yu@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 17:40:08 +0000 (18:40 +0100)]
Use common IRET macro for all exits from XenLinux. Currently
uses slow iret path every time (but most returns will do that
anyway, since they'll be to userspace). Fast return (to kernel)
can be implemented inside the macro and respect the
supervisor_mode_kernel feature flag.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 17:30:43 +0000 (18:30 +0100)]
Remove TBF_SLOW_IRET hack from x86/64 Xen return-to-guest
path. Guest should set up flags for itself in its own
NMI handler.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 17:27:18 +0000 (18:27 +0100)]
Remove explicit munging of selector RPLs from Xen Linux x86/64.
Not needed now it's done by Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
vhanquez@kneesa.uk.xensource.com [Thu, 23 Feb 2006 17:14:55 +0000 (17:14 +0000)]
initialize few structure fully to zero with talloc_zero
instead of explicitely initializing some fields to NULL.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
cl349@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 16:29:06 +0000 (16:29 +0000)]
Output which shadow mode is used, if any.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 15:59:54 +0000 (15:59 +0000)]
Make the fixmap area moveable in kernel address space.
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 15:22:19 +0000 (15:22 +0000)]
Move the gate page (vsyscall) out of the fixmap area into user address space,
just below PAGE_OFFSET.
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 15:22:17 +0000 (15:22 +0000)]
Add include/asm-i386/{a.out,elf}.h to sparse tree
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 14:55:35 +0000 (15:55 +0100)]
Add XENFEAT feature parsing to the domain 0 builder in Xen.
Fail to boot if domain 0 requires features that Xen does not
understand or support (for domain 0).
Remove stale dom0_translate boot option.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 14:33:08 +0000 (15:33 +0100)]
Remove some unnecessary diffs vs. native Linux. We now don't use the Xen
FLAT_foo segment selectors at all.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 14:22:12 +0000 (15:22 +0100)]
Fix netfront receive path for auto_translate_physmap mode.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 13:50:00 +0000 (14:50 +0100)]
Disable pagetable pinning for shadow-mode-refcount guests.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 13:43:45 +0000 (14:43 +0100)]
Clean up segment selector fixup and validation.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 10:59:27 +0000 (11:59 +0100)]
Rename XENFEAT_ring0_kernel to slightly more generic XENFEAT_supervisor_mode_kernel.
Add comments in public header version.h to explain what all the different
feature flags mean. Add a new flag XENFEAT_pae_pgdir_above_4gb to inform the guest
that its PAE page directories do not need to conform to the usual hardware
restriction.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 10:42:19 +0000 (11:42 +0100)]
Silenty ignore calls to xen_create_contiguous_region() when running
in auto_translated_physmap mode. A new comment in that function explains
why this is an okay thing to do.
This avoids an unnecessary crash in Xen's skbuff_ctor.
Signed-off-by: Michael Vrable <mvrable@cs.ucsd.edu>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 10:34:11 +0000 (11:34 +0100)]
Clean up some vmx code.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 10:31:01 +0000 (11:31 +0100)]
Whenever the slice of a domU is set to 0, sedf_adjdom() sets extraweight
to 0. Later, in desched_extra_dom(), if the extrawight is not set, the
vcpu's score is calculated with this:
/*domain was running in L1 extraq => score is inverse of
utilization and is used somewhat incremental!*/
if ( !inf->extraweight )
/*NB: use fixed point arithmetic with 10 bits*/
inf->score[EXTRA_UTIL_Q] = (inf->period << 10) /
inf->slice;
Which can result in a divide by zero.
This changeset adds a comments and additional sanity check to prevent this
case from crashing Xen.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 10:27:35 +0000 (11:27 +0100)]
Update the hypercalls in Mini-OS to reflect the current state in XenLinux.
Signed-off-by: Aravindh Puthiyaparambil <aravindh.puthiyaparambil@unisys.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 10:24:37 +0000 (11:24 +0100)]
Per-vcpu IO evtchn support for VT-i guests (ia64).
Signed-off-by Kevin Tian <kevin.tian@intel.com>
Signed-off-by Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 23 Feb 2006 10:22:25 +0000 (11:22 +0100)]
Per-vcpu IO evtchn patch for HVM domain.
We are starting to send patches to support SMP VMX guest.
Signed-off-by: Xin Li <xin.b.li@intel.com>
emellor@leeni.uk.xensource.com [Wed, 22 Feb 2006 20:52:30 +0000 (21:52 +0100)]
Adding a second IP address onto eth0 causes the vif-* hotplug scripts to
fail: ip_of() is returning a LIST of IP addresses, one per line.
The vif-scripts attempt to use the list where single addresses ought to
be, with predictable results. This patch changes ip_of() to return
the first address in the list, which seems to be the first one configured.
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
Ian.Campbell@xensource.com [Wed, 22 Feb 2006 19:11:23 +0000 (19:11 +0000)]
Add feature flag allowing guest kernel to run in domain 0.
To support this we give kernel GDT entries DPL=0 and use kernel
segment selectors with RPL=0. Xen will crunch these to ring 1 when
they are passed in. When a segment selector is used directly or placed
in a stack frame the guest OS is reponsible for crunching the RPL.
Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Feb 2006 18:40:19 +0000 (19:40 +0100)]
Cset 8916 missed two extra pages for VT-i domain and thus breaks domain
creation. This fixes it.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Feb 2006 18:38:50 +0000 (19:38 +0100)]
Fix gcc warning and clean a piece of code in arch_set_info_guest to avoid
AP of HVM domain going to a wrong code path.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Feb 2006 18:23:35 +0000 (19:23 +0100)]
Change shadow_direct_map_init/clean param from vcpu to domain.
Also some cleanups.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Ian.Campbell@xensource.com [Wed, 22 Feb 2006 17:26:39 +0000 (17:26 +0000)]
Fix x86_64 Xen build.
event_callback_cs and failsafe_callback_cs are x86_32 only.
Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
cl349@firebug.cl.cam.ac.uk [Wed, 22 Feb 2006 15:50:28 +0000 (15:50 +0000)]
Don't reload segment registers -- it's done later in generic code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Ian.Campbell@xensource.com [Wed, 22 Feb 2006 15:17:04 +0000 (15:17 +0000)]
Move lgdt_finish inline
Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
Ian.Campbell@xensource.com [Wed, 22 Feb 2006 15:16:44 +0000 (15:16 +0000)]
List supported feature flags in __xen_guest section.
Signed-off-bu: Ian Campbell <Ian.Campbell@XenSource.com>
Ian.Campbell@xensource.com [Wed, 22 Feb 2006 15:13:48 +0000 (15:13 +0000)]
Validate the segment selectors passed to arch_set_info_guest().
Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
Ian.Campbell@xensource.com [Wed, 22 Feb 2006 15:13:08 +0000 (15:13 +0000)]
Allow Xen to truncate x86_32 segment limits to the correct value
rather than hardcoding them in each guest kernel.
Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
pl@us.ibm.com [Wed, 22 Feb 2006 15:02:54 +0000 (16:02 +0100)]
XM-Test takes a really long time to build the initrd it uses for testing. This patch to the Makefile allows you to specify INITRD="url" when running make existing to make it download a prebuilt copy of the initrd from a repository.
Signed-off-by: Paul Larson <pl@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Feb 2006 08:54:20 +0000 (09:54 +0100)]
When thermal interrupt happened when vmx guest is running,
smp_thermal_interrupt() should be called.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 22 Feb 2006 08:53:54 +0000 (09:53 +0100)]
Fix HVM x86-32 PAE guest support on 64-bit Xen.
Signed-off-by: Xiaohui Xin < xiaohui.xin@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Feb 2006 18:36:00 +0000 (19:36 +0100)]
Fix SVM instruction decode, fixing problem with gfxboot package.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Feb 2006 18:35:34 +0000 (19:35 +0100)]
Fix 64b build breakage.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Feb 2006 18:32:15 +0000 (19:32 +0100)]
inst_len in HVM mmio handler must be a signed variable, as
it may hold an error return value (from hvm_instruction_length).
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Feb 2006 17:29:28 +0000 (18:29 +0100)]
Define constants for XENVER char array sizes. Allows Linux
users to avoid using the typedefs directly.
Signed-off-by: Mike Day <ncmike@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Feb 2006 17:23:35 +0000 (18:23 +0100)]
Cleanups to tools since HVM domain P2M table and 1-1 table are built in xen.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Feb 2006 17:21:13 +0000 (18:21 +0100)]
Fix cleanup path if an HVM guest fails very early, before direct map is built.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Feb 2006 17:19:16 +0000 (18:19 +0100)]
No need for save_segments() on HVM 64b guest.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 21 Feb 2006 17:15:49 +0000 (18:15 +0100)]
Add PAE option to HVM config file.
This option is disabled by default, only if we have "pae=1" in config
file, cpuid will return PAE available to VMX guest, and Linux PAE VMX
guest need this. Once the PAE VMX guest support is stable, we will
enable it by default.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
cl349@firebug.cl.cam.ac.uk [Tue, 21 Feb 2006 17:13:30 +0000 (17:13 +0000)]
tpm: Fixes and cleanup
Fix a recently found problem in tpm.c, move the vtpm sysfs
entry to /sys/device/platform/tpm_vtpm and add locking in
the vtpm hotplug script.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
cl349@firebug.cl.cam.ac.uk [Tue, 21 Feb 2006 16:25:56 +0000 (16:25 +0000)]
Update ia64 sparse tree to Linux 2.6.16-rc4.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
cl349@firebug.cl.cam.ac.uk [Tue, 21 Feb 2006 11:19:13 +0000 (11:19 +0000)]
Update to Linux 2.6.16-rc4.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
--HG--
rename : patches/linux-2.6.16-rc3/i386-mach-io-check-nmi.patch => patches/linux-2.6.16-rc4/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16-rc3/net-csum.patch => patches/linux-2.6.16-rc4/net-csum.patch
rename : patches/linux-2.6.16-rc3/pmd-shared.patch => patches/linux-2.6.16-rc4/pmd-shared.patch
rename : patches/linux-2.6.16-rc3/smp-alts.patch => patches/linux-2.6.16-rc4/smp-alts.patch
cl349@firebug.cl.cam.ac.uk [Mon, 20 Feb 2006 23:01:50 +0000 (23:01 +0000)]
linux-i386: Fix CONFIG_X86_NO_TSS and CONFIG_X86_SYSENTER.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 20 Feb 2006 20:26:24 +0000 (20:26 +0000)]
linux-i386: Cleanup stack pointer initialization at start of day.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 20 Feb 2006 18:03:56 +0000 (18:03 +0000)]
Suppress VIDEO_SELECT config option.
The Xen guest doesn't know how to change video modes at boot.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 20 Feb 2006 18:02:55 +0000 (18:02 +0000)]
Add drivers/video/Kconfig to sparse tree.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 20 Feb 2006 17:59:41 +0000 (17:59 +0000)]
Fix I/O port address for first floppy controller on x86_64.
As a consequence, some of the i386 changes over native code need to also be
added to x86-64.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 20 Feb 2006 17:34:21 +0000 (17:34 +0000)]
Fix read_cr3() and use it.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 20 Feb 2006 17:32:29 +0000 (17:32 +0000)]
Eliminate x86_64 idt_table.
Add CONFIG_X86_NO_IDT to exclude all code which references the idt table.
Also fix the non-Xen cpu_gdt_init() handling.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 20 Feb 2006 17:22:00 +0000 (17:22 +0000)]
Eliminate i386 idt_table.
Add CONFIG_X86_NO_IDT to exclude all code which references the idt table.
Make CONFIG_X86_F00F_BUG conditional on CONFIG_X86_NO_IDT.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 20 Feb 2006 17:15:14 +0000 (17:15 +0000)]
Add arch/i386/Kconfig.cpu to sparse tree.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
vhanquez@kneesa.uk.xensource.com [Mon, 20 Feb 2006 17:14:19 +0000 (17:14 +0000)]
do not BUG() if memory cannot be allocated, just wait.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
vhanquez@kneesa.uk.xensource.com [Mon, 20 Feb 2006 17:06:36 +0000 (17:06 +0000)]
alloc_netdev must be freed with free_netdev, not directly by kfree.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
cl349@firebug.cl.cam.ac.uk [Mon, 20 Feb 2006 16:49:35 +0000 (16:49 +0000)]
Simplify utoa macro, make it identical with x86_64 version.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 20 Feb 2006 16:42:54 +0000 (16:42 +0000)]
Eliminate hard coded items from x86_64 __xen_guest section
to avoid problems when the position of the hypercall page changes.
Further, clean up many things to avoid needless differences to native
code, while also adding a couple of adjustments that only will be
submitted for native code inclusion, that simplify code, or that
remove unused elements.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 20 Feb 2006 16:08:27 +0000 (16:08 +0000)]
Eliminate hard coded items from i386 __xen_guest section
to allow the new VMSPLIT_* Kconfig options to work, and to
avoid problems when the position of the hypercall page
changes.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>